<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery betterLoader - Example 2</title>
<script type="text/javascript" language="javascript" src="jquery.js"></script>
	<script type="text/javascript" language="javascript" src="jquery.betterLoader.js"></script>
	<script type="text/javascript" language="javascript">
		$(document).ready(function()	{	
			/*
			 *
			 * First of all, set your attributes
			 *
			 */
			var options = {
				loading: "#mainContent",
				fire: ".menu",
				message: "<img src='loading.gif' border='0' /><br />Loading Custom Message...",
				target: "#mainContent"
			}
			
			/*
			 *
			 * You can call the function, doing this
			 *
			 */
			$(".menu").betterLoader(options);
			/*
			 *
			 * Or, doing this
			 * $(".example").betterLoader({loading: "#loading", fire: ".example",	message: "<img src='loading.gif' border='0' /><br />Loading Custom Message...", target: "#target"});
			 *
			 */
		});
		
	</script>
<style type="text/css">
<!--
body {
	background: #666666;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	color: #000000;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
}
.oneColFixCtrHdr #container {
	width: 780px;  /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
	background: #FFFFFF;
	margin: 10px auto; /* the auto margins (in conjunction with a width) center the page */
	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */
}
.oneColFixCtrHdr #header {
	background: #DDDDDD; 
	padding: 0 10px 0 20px;  /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
}
.oneColFixCtrHdr #header h1 {
	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}

.oneColFixCtrHdr #mainContent {
	padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
	background: #FFFFFF;
}
.oneColFixCtrHdr #footer {
	padding: 0 10px; /* this padding matches the left alignment of the elements in the divs that appear above it. */
	background:#DDDDDD;
}
.oneColFixCtrHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
}
-->
</style></head>

<body class="oneColFixCtrHdr">

<div id="container">
  <div id="header">
    <h1>Header</h1>
    <div>
    	<table width="100%" border="0" cellpadding="0" cellspacing="0">
        	<tr align="center">
            	<td><a href="javascript: void(0)" class="menu" rel="menu1.php">Menu 01</a></td>
            	<td><a href="javascript: void(0)" class="menu" rel="menu2.php">Menu 02</a></td>
            	<td><a href="javascript: void(0)" class="menu" rel="menu3.php">Menu 03</a></td>
            	<td><a href="javascript: void(0)" class="menu" rel="menu4.php">Menu 04</a></td>
            	<td><a href="javascript: void(0)" class="menu" rel="menu5.php">Menu 05</a></td>
            </tr>
        </table>
    </div>
  <!-- end #header --></div>
  <div id="mainContent">&nbsp;
    
	<!-- end #mainContent --></div>
  <div id="footer">
    <p>Footer</p>
  <!-- end #footer --></div>
<!-- end #container --></div>
</body>
</html>